
package com.fire.web.modules.all.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.fire.web.modules.all.entity.BuildingModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * BuildingDao
 *
 * @author Matthew
 * @Date 2019-01-17 20:47
 */
@Mapper
public interface BuildingMapper extends BaseMapper<BuildingModel>{

	/**
	 * 根据实体查询列表
	 * @param model
	 * @return
	 */
	List<BuildingModel> selectListByModel(@Param("e") BuildingModel model);

	/**
	 * 获取建筑物下拉选
	 * @return
	 */
	List<Map> getBuildingItem();

	/**
	 * 查询建筑物Map列表(增加完整地址数据列)
	 * @return
	 */
	List<Map<String,String>> queryBuildingListMap(Pagination page, @Param("ew") Wrapper<BuildingModel> wrapper);

}
